import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ken
 * Date: 2023-11-21
 * Time: 18:01
 */
public class Test {
    public static void interchange(int[] x,int[] y) {
        for(int i = 0;i<x.length;i++) {
            int temp = x[i];
            x[i] = y[i];
            y[i] = temp;
        }
    }
    public static void main(String[] args) {
        int[] one = new int[]{1,2,3,4,5};
        int[] two = new int[]{6,7,8,9,10};
        interchange(one,two);
        System.out.println(Arrays.toString(one));
        System.out.println(Arrays.toString(two));

    }
}
